package com.meiwenhui.sishuwujing.controller;

import java.util.List;

import javax.annotation.Resource;

import com.meiwenhui.sishuwujing.entities.Book;
import com.meiwenhui.sishuwujing.entities.Catalogue;
import com.meiwenhui.sishuwujing.entities.Chapter;
import com.meiwenhui.sishuwujing.service.BookService;
import com.meiwenhui.sishuwujing.service.CatalogueService;
import com.meiwenhui.sishuwujing.service.ChapterService;

public class BaseController {

	protected int id;
	protected int offset;
	protected int count;

	// --------------

	@Resource
	protected CatalogueService catalogueServiceImpl;
	@Resource
	protected BookService bookServiceImpl;
	@Resource
	protected ChapterService chapterServiceImpl;

	// -----------

	protected Catalogue catalogue;
	protected List<Catalogue> catalogues;

	protected Book book;
	protected List<Book> books;

	protected Chapter chapter;
	protected List<Chapter> chapters;

	// ----------------

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getOffset() {
		return offset;
	}

	public void setOffset(int offset) {
		this.offset = offset;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public Catalogue getCatalogue() {
		return catalogue;
	}

	public void setCatalogue(Catalogue catalogue) {
		this.catalogue = catalogue;
	}

	public List<Catalogue> getCatalogues() {
		return catalogues;
	}

	public void setCatalogues(List<Catalogue> catalogues) {
		this.catalogues = catalogues;
	}

	public Book getBook() {
		return book;
	}

	public void setBook(Book book) {
		this.book = book;
	}

	public List<Book> getBooks() {
		return books;
	}

	public void setBooks(List<Book> books) {
		this.books = books;
	}

	public Chapter getChapter() {
		return chapter;
	}

	public void setChapter(Chapter chapter) {
		this.chapter = chapter;
	}

	public List<Chapter> getChapters() {
		return chapters;
	}

	public void setChapters(List<Chapter> chapters) {
		this.chapters = chapters;
	}

}
